/* pc */
.bg-header {
  background: url(//qn1.10soo.net/assets24/202410111529382.svg);
  block-size: 10rem;
  background-size: cover;
  background-position: center;
}
.bg-header img {
  inline-size: 32rem;
}

/********** header导航 **********/
.nav-item .nav-wrap {
  transform-origin: top;
  transform: scaleY(0);
  visibility: hidden;
  opacity: 0;
  transition: 0.35s all cubic-bezier(0.65, 0.05, 0.36, 1);
}

.nav-item:hover .nav-wrap {
  /* transform: translateY(100%); */
  transform: scaleY(1);
  visibility: visible;
  opacity: 1;
}
/* mobile */
#menu__toggle {
  opacity: 0;
  display: none;
}
#menu__toggle:checked + .menu__btn > span {
  transform: rotate(45deg);
}
#menu__toggle:checked + .menu__btn > span::before {
  top: 0;
  transform: rotate(0deg);
}
#menu__toggle:checked + .menu__btn > span::after {
  top: 0;
  transform: rotate(90deg);
}
#menu__toggle:checked ~ .menu__box {
  right: 0 !important;
}
.menu__btn {
  position: absolute;
  top: 30px;
  right: 20px;
  width: 26px;
  height: 26px;
  cursor: pointer;
}
.menu__btn > span,
.menu__btn > span::before,
.menu__btn > span::after {
  display: block;
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #616161;
  transition-duration: 0.25s;
}
.menu__btn > span::before {
  content: "";
  top: -8px;
}
.menu__btn > span::after {
  content: "";
  top: 8px;
}
.menu__box {
  display: block;
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100%;
  margin: 0;
  padding: 80px 0;
  list-style: none;
  background-color: #eceff1;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
  transition-duration: 0.25s;
}
.menu__item {
  display: block;
  padding: 12px 24px;
  color: #333;
  font-family: "Roboto", sans-serif;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  transition-duration: 0.25s;
}
.menu__item:hover {
  background-color: #cfd8dc;
}
